package com.ayu.shortlink.admin.dto.req;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * 文件上传请求实体类
 */
@Data
public class FileUploadReqDTO {

    @NotNull("MD5不能为空")
    private String md5;

    @NotNull("ID不能为空")
    private String uploadId;

    @NotNull("文件名不能为空")
    private String originFileName;

    private String url;

    @NotNull("文件大小不能为空")
    private Long size;

    @NotNull("分片数量不能为空")
    private Integer chunkCount;

    @NotNull("分片大小不能为空")
    private Long chunkSize;

    private List<Integer> listParts;

    private String object;

    private String type;

    private String contentType;
}
